/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package InternetHax;

import InternetHax.*;

/**
 *
 * @author LoginError
 */
public class App {
    
public int appID = 0;

public App(int id)
{
    appID = id;
}

public int getType()
{
    if(this instanceof ActiveApp)
        return Constants.APPTYPE_ACTIVE;

    if(this instanceof PassiveApp)
        return Constants.APPTYPE_PASSIVE;

    if(this instanceof ConsumableApp)
        return Constants.APPTYPE_CONSUMABLE;

    if(this instanceof LogicApp)
        return Constants.APPTYPE_LOGIC;

    if(this instanceof MovementApp)
        return Constants.APPTYPE_MOVEMENT;

    return Constants.APP_ERROR;
}



public int getAppID() 
{
    return appID;
}

public void setAppID(int appID) 
{
    this.appID = appID;
}

public String toString()
{
    return "App ID: " + appID;
}

}
